using System;
using System.Collections.Generic;
using System.Text;
using System.Data.OleDb;

namespace CONTROLADORA
{
    class dataBase
    {
        private static volatile dataBase instancia = null;
        private OleDbConnection oConnection;
        private string ConString;
        private dataBase()
        
        {
            ConString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=modSeguridad.mdb";
            oConnection = new OleDbConnection ();
            oConnection.ConnectionString = ConString;
            oConnection.Open();
        }

        public static dataBase getInstancia
        {
            get
            {
                if (instancia == null)
                {
                    instancia = new dataBase();
                }
                return instancia;
            }
        }

        public OleDbConnection activeConnection
        {
            get
            {
                return oConnection;
            }

        }
        public string getConString
        {
            get
            {
                return ConString;

            }
        }
    }
}
